package chapter4

import (
	"errors"
	"log"
)

var errDirByzero =errors.New("division by zero")

func judge(x,y int)(int,error){
	if y==0{
		return 0,errDirByzero
	}
	return x/y,nil
}

func Test6()  {
	_,y:=judge(9,0)
	log.Fatalln(y)
}
